blob: e9f2b516b57c630e4eddf8dac4da546a19ee08de [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001// 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);