Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Why V8 crashes with that script?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kenji  
View profile  
 More options Jul 23 2009, 6:22 am
From: Kenji <kenjichan...@gmail.com>
Date: Thu, 23 Jul 2009 03:22:29 -0700 (PDT)
Local: Thurs, Jul 23 2009 6:22 am
Subject: Why V8 crashes with that script?
Hi,
The following code would crash.

I know a->x is a wrong syntax, but v8 should be able to handle
execution errors, right?
Am I missing something here? It's not throwing an exception or
returning an error code, but accessing null pointer in internal::Invoke
()

  Handle<String> source = String::New("function A(){} var a = new A();
a->x = 0;");
  Handle<Script> script = Script::Compile(source);
  Handle<Value> result = script->Run();

Could anybody help?

Thanks,

Kenji


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Plesner Hansen  
View profile  
 More options Jul 23 2009, 6:30 am
From: Christian Plesner Hansen <christian.plesner.han...@gmail.com>
Date: Thu, 23 Jul 2009 12:30:49 +0200
Local: Thurs, Jul 23 2009 6:30 am
Subject: Re: [v8-users] Why V8 crashes with that script?
The problem is that this is a syntax error so Compile fails and gives
you back an empty handle.  You have to check that compilation
succeeded (using Script::IsEmpty) before you run it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kenji  
View profile  
 More options Jul 23 2009, 6:39 am
From: Kenji <kenjichan...@gmail.com>
Date: Thu, 23 Jul 2009 03:39:41 -0700 (PDT)
Local: Thurs, Jul 23 2009 6:39 am
Subject: Re: Why V8 crashes with that script?
But it crashed before Run() returns, and this is the problem.

On 7月23日, 下午6時30分, Christian Plesner Hansen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kenji  
View profile  
 More options Jul 23 2009, 6:42 am
From: Kenji <kenjichan...@gmail.com>
Date: Thu, 23 Jul 2009 03:42:30 -0700 (PDT)
Local: Thurs, Jul 23 2009 6:42 am
Subject: Re: Why V8 crashes with that script?
Oh thanks!   I should check the compile result before Run()

On 7月23日, 下午6時39分, Kenji <kenjichan...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »