diff --git a/deps/chakrashim/core/lib/Runtime/Language/SourceTextModuleRecord.cpp b/deps/chakrashim/core/lib/Runtime/Language/SourceTextModuleRecord.cpp index 6c8775e1aa9..5cc4197b4e5 100644 --- a/deps/chakrashim/core/lib/Runtime/Language/SourceTextModuleRecord.cpp +++ b/deps/chakrashim/core/lib/Runtime/Language/SourceTextModuleRecord.cpp @@ -127,7 +127,7 @@ namespace Js srcInfo->moduleID = moduleId; LoadScriptFlag loadScriptFlag = (LoadScriptFlag)(LoadScriptFlag_Expression | LoadScriptFlag_Module | - (isUtf8 ? LoadScriptFlag_Utf8Source : LoadScriptFlag_None)); + LoadScriptFlag_disableAsmJs | (isUtf8 ? LoadScriptFlag_Utf8Source : LoadScriptFlag_None)); Utf8SourceInfo* pResultSourceInfo = nullptr; this->parseTree = scriptContext->ParseScript(parser, sourceText, diff --git a/deps/chakrashim/core/test/AsmJs/badFunctionType.baseline b/deps/chakrashim/core/test/AsmJs/badFunctionType.baseline index c03ad0f55df..6ac8084b5ad 100644 --- a/deps/chakrashim/core/test/AsmJs/badFunctionType.baseline +++ b/deps/chakrashim/core/test/AsmJs/badFunctionType.baseline @@ -56,13 +56,10 @@ default, rest & destructuring args not allowed Asm.js compilation failed. Running test 14: kFunctionIsModule -Warning test disabled Running test 15: asm.js function in Module -Warning test disabled Running test 16: kFunctionIsDefaultModuleExport -Warning test disabled Running test 17: kFunctionHasSuperReference invalid function flags detected diff --git a/deps/chakrashim/core/test/AsmJs/badFunctionType.js b/deps/chakrashim/core/test/AsmJs/badFunctionType.js index 4f964742a88..77ba96f9b83 100644 --- a/deps/chakrashim/core/test/AsmJs/badFunctionType.js +++ b/deps/chakrashim/core/test/AsmJs/badFunctionType.js @@ -189,8 +189,6 @@ const tests = [{ `) } }, { - // Todo:: bug #12464098 - disabled: true, name: "kFunctionIsModule", test() { WScript.LoadModule(` "use asm" @@ -200,8 +198,6 @@ const tests = [{ }`) } }, { - // found bugs in jsrt api - disabled: true, name: "asm.js function in Module", test() { WScript.LoadModule(` @@ -211,7 +207,6 @@ const tests = [{ }`) } }, { - disabled: true, name: "kFunctionIsDefaultModuleExport", test() { WScript.LoadModule(`