get-str-update.js (799B)
1 // |reftest| module 2 // Copyright (C) 2016 the V8 project authors. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 /*--- 5 esid: sec-module-namespace-exotic-objects-get-p-receiver 6 description: References observe the mutation of initialized bindings 7 info: | 8 [...] 9 12. Let targetEnvRec be targetEnv's EnvironmentRecord. 10 13. Return ? targetEnvRec.GetBindingValue(binding.[[BindingName]], true). 11 flags: [module] 12 ---*/ 13 14 import * as ns from './get-str-update.js'; 15 export var local1 = 111; 16 var local2 = 222; 17 export { local2 as renamed }; 18 export { local1 as indirect } from './get-str-update.js'; 19 20 local1 = 333; 21 local2 = 444; 22 23 assert.sameValue(ns.local1, 333); 24 assert.sameValue(ns.renamed, 444); 25 assert.sameValue(ns.indirect, 333); 26 27 reportCompare(0, 0);