Commit 44f781d
v8: warn in Template::Set() on improper use
The next major release will make it a fatal error to use non-primitive
values in function templates and object templates.
Print a warning that includes the C and JS stack trace to tell people to
upgrade their add-ons. The C stack trace is only printed on platforms
that support it (the BSDs, OS X and Linux+glibc.)
The warning can be disabled with the new `--nowarn_template_set` flag.
Refs: #6216
PR-URL: #6277
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent b2f7c32 commit 44f781dCopy full SHA for 44f781d
File tree
Expand file treeCollapse file tree
2 files changed
+13
-0
lines changedOpen diff view settings
Filter options
- deps/v8/src
Expand file treeCollapse file tree
2 files changed
+13
-0
lines changedOpen diff view settings
Collapse file
+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1036 | 1036 | |
1037 | 1037 | |
1038 | 1038 | |
| 1039 | + |
| 1040 | + |
| 1041 | + |
| 1042 | + |
| 1043 | + |
| 1044 | + |
| 1045 | + |
| 1046 | + |
| 1047 | + |
| 1048 | + |
1039 | 1049 | |
1040 | 1050 | |
1041 | 1051 | |
|
Collapse file
deps/v8/src/flag-definitions.h
Copy file name to clipboardExpand all lines: deps/v8/src/flag-definitions.h+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
172 | 172 | |
173 | 173 | |
174 | 174 | |
| 175 | + |
| 176 | + |
| 177 | + |
175 | 178 | |
176 | 179 | |
177 | 180 | |
|
0 commit comments