Skip to content

Commit 05ffd69

Browse files
committed
fix: use isError instead of instanceof due to realms
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: passed - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent e0d11bd commit 05ffd69

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/utils/jsonify-keys/examples

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/utils/jsonify-keys/examples/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
'use strict';
2020

21+
var isError = require( '@stdlib/assert/is-error' );
2122
var jsonifyKeys = require( './../lib' );
2223

2324
var out = jsonifyKeys( '{ beep: "boop" }' );
@@ -37,5 +38,5 @@ console.log( out );
3738
// => null
3839

3940
out = jsonifyKeys( '{ beep: "boop }' );
40-
console.log( out instanceof Error );
41+
console.log( isError( out ) );
4142
// => true

0 commit comments

Comments
 (0)