question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ralphtheninjacommented, Dec 6, 2017

@dcousens Rod has given me access to node-errno now, so if you have any input and feedback please post some issues 😃

1reaction
dcousenscommented, Sep 5, 2017

@ralphtheninja I stopped using levelup in favour of plain leveldown as a result. Ended up simpler.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found