summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/04_bugs/20_use_strict_stack_mismatch
blob: 7294d2387a00f6625e057fa6813f4dd2640fedf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
When compiling the `use strict` statement, the compiler omitted the
corresponding load instruction, leading to a mismatch of the expected
stack layout between compiler and VM.

-- Expect stdout --
1
-- End --

-- Testcase --
{%
	"use strict";

	let x = 1;

	print(x, "\n");
%}
-- End --