Commit 8dc157b
committed
Expose problem due to This being passed to Unwrap
On Node 0.10.40, the test case will now fail with SIGABRT due to a failed
assertion:
node: ../../nan_object_wrap.h:33:
static T* Nan::ObjectWrap::Unwrap(v8::Local<v8::Object>)
[with T = MyObject]:
Assertion `object->InternalFieldCount() > 0' failed.
This is because This is not an instance of the type in question.
Node >=0.12 seem to report a TypeError: Illegal invocation instead.1 parent 367e82a commit 8dc157b
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
24 | 34 | | |
0 commit comments