// Copyright 2017 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.// Flags: --allow-natives-syntax(functionTestImportSymbolValue(){functionModule(stdlib,foreign){"use asm";varx=+foreign.x;functionf(){}return{f:f};}varforeign={x:Symbol("boom")};assertThrows(()=>Module(this,foreign));assertFalse(%IsAsmWasmCode(Module));})();(functionTestImportMutatingObject(){functionModule(stdlib,foreign){"use asm";varx=+foreign.x;varPI=stdlib.Math.PI;functionf(){return+(PI+x)}return{f:f};}varstdlib={Math:{PI:Math.PI}};varforeign={x:{valueOf:()=>(stdlib.Math.PI=23,42)}};varm=Module(stdlib,foreign);assertFalse(%IsAsmWasmCode(Module));assertEquals(65,m.f());})();