File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -854,6 +854,11 @@ namespace Js
854854 mathFunc = nullptr ;
855855 simdFunc = nullptr ;
856856
857+ if (!pnodeInit)
858+ {
859+ return Fail (decl, _u (" The righthand side of a var declaration missing an initialization (empty)" ));
860+ }
861+
857862 if (pnodeInit->nop == knopName)
858863 {
859864 declSym = LookupIdentifier (pnodeInit->name (), func);
Original file line number Diff line number Diff line change 800800 <compile-flags >-testtrace:asmjs -maic:1</compile-flags >
801801 </default >
802802 </test >
803+ <test >
804+ <default >
805+ <files >vardeclnorhs.js</files >
806+ <baseline >vardeclnorhs.baseline</baseline >
807+ <compile-flags >-testtrace:asmjs -maic:1</compile-flags >
808+ </default >
809+ </test >
803810</regress-exe >
Original file line number Diff line number Diff line change 1+ The righthand side of a var declaration missing an initialization (empty)
2+ Asm.js compilation failed.
Original file line number Diff line number Diff line change 1+ //-------------------------------------------------------------------------------------------------------
2+ // Copyright (C) Microsoft. All rights reserved.
3+ // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+ //-------------------------------------------------------------------------------------------------------
5+ function module ( stdlib ) {
6+ "use asm"
7+ function foo ( ) {
8+ var abc ;
9+ }
10+ }
You can’t perform that action at this time.
0 commit comments