Skip to content

Commit 31aedb6

Browse files
authored
Fix error type check (#409)
* Fix error type check * Update NEWS
1 parent 31dd945 commit 31aedb6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
htmlwidgets 1.5.3.9000
22
-------------------------------------------------------
33

4+
* Fixed #408: An error type-check did not work correctly because it was missing parentheses. (#409)
45

56
htmlwidgets 1.5.3
67
-------------------------------------------------------

inst/www/htmlwidgets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
try {
252252
result = eval("(" + code + ")");
253253
} catch(error) {
254-
if (!error instanceof SyntaxError) {
254+
if (!(error instanceof SyntaxError)) {
255255
throw error;
256256
}
257257
try {

0 commit comments

Comments
 (0)