Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
[Merge chakra-core/ChakraCore@241da53bd4] [1.6>1.7] [MERGE #3546 @Mik…
Browse files Browse the repository at this point in the history
…eHolman] disable asm.js in ES6 modules

Merge pull request #3546 from MikeHolman:asmmodule

OS: 12464067
  • Loading branch information
chakrabot authored and MSLaguana committed Sep 25, 2017
1 parent 4b7cfa8 commit 4ca31d4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 0 additions & 3 deletions deps/chakrashim/core/test/AsmJs/badFunctionType.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions deps/chakrashim/core/test/AsmJs/badFunctionType.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ const tests = [{
`)
}
}, {
// Todo:: bug #12464098
disabled: true,
name: "kFunctionIsModule",
test() { WScript.LoadModule(`
"use asm"
Expand All @@ -200,8 +198,6 @@ const tests = [{
}`)
}
}, {
// found bugs in jsrt api
disabled: true,
name: "asm.js function in Module",
test() {
WScript.LoadModule(`
Expand All @@ -211,7 +207,6 @@ const tests = [{
}`)
}
}, {
disabled: true,
name: "kFunctionIsDefaultModuleExport",
test() {
WScript.LoadModule(`
Expand Down

0 comments on commit 4ca31d4

Please sign in to comment.