1// Copyright 2014 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Flags: --allow-natives-syntax
6
7"use strict";
8
9var global;
10
11function g() { global = this; }
12Object.defineProperty(Number.prototype, "prop", { get: g });
13function f(s) { s.prop; }
14
15f(1);
16f(1);
17%OptimizeFunctionOnNextCall(f);
18f(1);
19