Commit 0a0dc00
committed
squash: fix compiler warning 07_passing_wrapped_ob
Currently the following compiler warning is emitted:
1 warning generated.
../addon.cc:24:16:
warning: 'ToObject' is deprecated:
Use maybe version [-Wdeprecated-declarations]
args[0]->ToObject(isolate));
^
./deps/v8/include/v8.h:2539:3:
note: 'ToObject' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version",
^
This commit updates example to use the non-deprecated version.1 parent 6e1fdb8 commit 0a0dc00
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
| 1084 | + | |
1084 | 1085 | | |
1085 | 1086 | | |
1086 | 1087 | | |
| |||
1095 | 1096 | | |
1096 | 1097 | | |
1097 | 1098 | | |
| 1099 | + | |
1098 | 1100 | | |
1099 | 1101 | | |
1100 | | - | |
| 1102 | + | |
1101 | 1103 | | |
1102 | | - | |
| 1104 | + | |
1103 | 1105 | | |
1104 | 1106 | | |
1105 | 1107 | | |
| |||
0 commit comments