binding-tests-1.js (407B)
1 // Copyright 2015 Microsoft Corporation. All rights reserved. 2 // This code is governed by the license found in the LICENSE file. 3 4 /*--- 5 description: this binding tests 6 flags: [noStrict] 7 es6id: 14.2 8 ---*/ 9 10 function foo(){ 11 return eval("()=>this"); 12 } 13 14 assert.sameValue(foo()(), this, "This binding initialization was incorrect for arrow capturing this from closure."); 15 16 reportCompare(0, 0);