TypeError on initialization in strict mode
See original GitHub issue$ node --version
v7.4.0
$ node --use-strict
> require('level')
TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode
functions or the arguments objects for calls to them
at CustomError (TEST/node_modules/errno/custom.js:18:44)
at createError (TEST/node_modules/errno/custom.js:42:43)
at ce (TEST/node_modules/errno/custom.js:48:12)
at module.exports (TEST/node_modules/errno/custom.js:52:25)
at Object.<anonymous> (TEST/node_modules/errno/errno.js:312:44)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Strict mode - JavaScript - MDN Web Docs
JavaScript's strict mode is a way to opt in to a restricted variant of JavaScript, thereby implicitly opting-out of "sloppy mode".
Read more >What does "use strict" do in JavaScript, and ... - Stack Overflow
In strict mode you will get a TypeError , when you try to assign to readonly properties or to define new properties for...
Read more >Strict mode in JavaScript - GeeksforGeeks
Strict Mode was a new feature in ECMAScript 5 that allows you to place a program, or a function, in a “strict” operating...
Read more >Strict mode - JavaScript
JavaScript's strict mode, introduced in ECMAScript 5, is a way to opt in to a restricted ... 'use strict'; delete Object.prototype; // throws...
Read more >Strict mode
Without strict mode, setting properties is simply ignored (no-op), with strict mode, however, a TypeError is thrown.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dcousens Rod has given me access to
node-errno
now, so if you have any input and feedback please post some issues 😃@ralphtheninja I stopped using
levelup
in favour of plainleveldown
as a result. Ended up simpler.