mirror of
https://github.com/wu736139669/Monkey-Test.git
synced 2026-08-05 05:55:46 +00:00
26 lines
378 B
JavaScript
26 lines
378 B
JavaScript
"use strict";
|
|
|
|
// all three var x|y|z = 4 should be errors I believe so we error on all
|
|
// v8 --harmony allows the first but not the second and last
|
|
|
|
if (true) {
|
|
let x = 3;
|
|
if (true) {
|
|
var x = 4;
|
|
}
|
|
}
|
|
|
|
let y = 3;
|
|
if (true) {
|
|
var y = 4;
|
|
}
|
|
|
|
(function() {
|
|
if (true) {
|
|
let z = 3;
|
|
if (true) {
|
|
var z = 4;
|
|
}
|
|
}
|
|
})();
|