At https://github.com/ramnathv/htmlwidgets/blob/31dd9451f454de75dac78dd9f2d1bd9e87c27a60/inst/www/htmlwidgets.js#L254, the condition `if (!error instanceof SyntaxError) {` will never succeed because `!` takes precedence over `instanceof`.