michael@0: load(libdir + "asserts.js"); michael@0: michael@0: assertThrowsInstanceOf(function () { michael@0: eval("function x() { 'use strict'; const x = 4; x = 3; }"); michael@0: }, TypeError); michael@0: assertThrowsInstanceOf(function () { michael@0: Function("'use strict'; const x = x = 5;"); michael@0: }, TypeError)