blob: a393b0d0519582c5c087ac276f50956e73d01e9a [file] [log] [blame]
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
In the absence of the "use strict" directive, functions declared as methods
obey "global" ThisMode semantics.
es6id: 14.3.8
flags: [noStrict]
---*/
var global = (function() { return this; }());
var thisValue = null;
var method = {
method() {
thisValue = this;
}
}.method;
method();
assert.sameValue(thisValue, global);