anonIntrinsics: use 'undefined' instead of 'void 0'
Once upon a time, 'undefined' could be redefined, whereas 'void 0' always
returns the real 'undefined'.
MODIFY
src/bundle/anonIntrinsics.js
src/bundle/anonIntrinsics.js
@@ -130,7 +130,7 @@ export default function getAnonIntrinsics(global) {
const undeniable = tuple[1];
let start = tuple[2];
undeniables[name] = undeniable;
- if (start === void 0) {
+ if (start === undefined) {
return;
}
start = Object(start);
@@ -280,7 +280,7 @@ export default function getAnonIntrinsics(global) {
})();
Object.keys(result).forEach(name => {
- if (result[name] === void 0) {
+ if (result[name] === undefined) {
throw new Error(`Malformed intrinsic: ${name}`);
}
});

anonIntrinsics: use 'undefined' instead of 'void 0'

Once upon a time, 'undefined' could be redefined, whereas 'void 0' always
returns the real 'undefined'.