Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work in Node 10 (Assertion `args[1]->IsString()' failed) #3051

Closed
Nickersoft opened this issue Jun 17, 2018 · 12 comments
Closed

Does not work in Node 10 (Assertion `args[1]->IsString()' failed) #3051

Nickersoft opened this issue Jun 17, 2018 · 12 comments

Comments

@Nickersoft
Copy link

Expected behaviour

karma start should execute tests as expected.

Actual behaviour

Running karma start results in the following error, a known issue in Node 10:

node[9155]: ../src/node_contextify.cc:629:static void node::contextify::ContextifyScript::New(const FunctionCallbackInfo<v8::Value> &): Assertion `args[1]->IsString()' failed.
 1: node::Abort() [/usr/local/bin/node]
 2: node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, char const*, int, v8::Local<v8::Value>*, node::async_context) [/usr/local/bin/node]
 3: node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/bin/node]
 4: v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo*) [/usr/local/bin/node]
 5: v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<true>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/usr/local/bin/node]
 6: v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/usr/local/bin/node]
 7: 0x2315820041bd
 8: 0x23158200ee5d
 9: 0x23158208b2a0
10: 0x231582013429
11: 0x231582013429
12: 0x231582013429
[1]    9155 abort      node_modules/.bin/karma start

Environment Details

  • Karma version (output of karma --version): 2.0.3

Steps to reproduce the behaviour

  1. Be running Node >= 10
  2. Run karma start
@johnjbarton
Copy link
Contributor

Our tests all pass on node 10 in Travis.

What makes you think this is a karma-runner bug, since you note: a known issue in Node 10?

@ktajpuri
Copy link

I am getting exactly the same issue. I also have node 10. Did you find a resolution?

@muthu7
Copy link

muthu7 commented Jun 28, 2018

@ktajpuri
Fix:
Run - npm install natives

@chrisdarroch
Copy link

If you have a lockfile, check that you're on at least version 1.1.4 of natives. Prior versions won't work in Node v10.

@duoduoObama
Copy link

Thank you very much for solving my problem。

@HulyaCoskun
Copy link

Thank you very much

@josuper
Copy link

josuper commented Feb 13, 2019

Help, i dind solve my problem

@johnjbarton
Copy link
Contributor

This does not look like an issue karma-runner can fix: it depends on the installed node environment.

@wilsonXo
Copy link

@ktajpuri
Fix:
Run - npm install natives

thx

@lia-o
Copy link

lia-o commented Jun 3, 2019

https://www.npmjs.com/package/natives

This package has been deprecated
Author message:

This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.

@shpeacock
Copy link

@ktajpuri
Fix:
Run - npm install natives

thank you. this worked for me

@hu-qi

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests