[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4758: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4759: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4760: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3891)
siliconforks.com • View topic - jscoverage and js data structures

Silicon Forks » Forum

It is currently 2019-11-16 11:37 pm

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: 2009-09-07 3:58 pm 
Hi,

First, congratulation for jscoverage, according to me it is a very well designed tool - the proxy server is a really smart solution.

Btw, I experienced some difficulities and I had to surrender.

I had difficultes because the fwk I'm using is quite ... different. I use something like that :
myObj.prototype = {
data : {
Type: "mydata.Data"
},

init : function(){
// my initialization
},
}

Then, the're is an extern initialization that "post-build" the object:
data is evaled again with : "data = new mydata.Data();". (Something like that.)

So I can't use jscoverage.... because the data declaration is wrapped (and then can't be find in the prototype).

I'm just wondering why jscoverage wrap the code :
data : {
Type: "mydata.Data"
},
... and not only functions declaration ?


Because, in this case, it would work really fine.
(And I understand this is not an usual way to work with JS - it's ok ;) )

Guillaume


Top
  
Reply with quote  
PostPosted: 2009-09-07 4:25 pm 
Offline

Joined: 2008-10-11 6:52 pm
Posts: 120
Hello, Guillaume,

I'm having trouble understanding your code - could you attach a .js file (or files) containing a minimal working example that I can run using JSCoverage and see what's going on?


Top
 Profile  
Reply with quote  
PostPosted: 2009-09-07 4:50 pm 
Ed,

I understand your trubble... Forgot my previous message, I spoke too fast (this message was only garbage...).



Actually, I have a JS code working but when I use thejscoverage proxy there is an error when calling the native eval function. I use a try cath and the error is the following :

"EvalError: function eval must be called directly, and not by way of a function of another name"


Do you have any idea ?


Top
  
Reply with quote  
PostPosted: 2009-09-07 5:23 pm 


Top
  
Reply with quote  
PostPosted: 2009-09-07 9:27 pm 
Offline

Joined: 2008-10-11 6:52 pm
Posts: 120


Top
 Profile  
Reply with quote  
PostPosted: 2009-09-08 8:11 am 


Top
  
Reply with quote  
PostPosted: 2009-09-08 8:18 am 


Top
  
Reply with quote  
PostPosted: 2009-09-08 5:16 pm 
Offline

Joined: 2008-10-11 6:52 pm
Posts: 120
Thanks, I see the problem now. I have modified the URL parser in jscoverage-server to accept more characters; "[" and "]" should work now, even if not %-escaped.


Top
 Profile  
Reply with quote  
PostPosted: 2009-09-09 12:13 pm 
Offline

Joined: 2009-09-08 11:41 am
Posts: 4
Great !


Do have an idea about the next release date ?


Top
 Profile  
Reply with quote  
PostPosted: 2009-09-09 4:24 pm 
Offline

Joined: 2008-10-11 6:52 pm
Posts: 120
Probably the next release will be in a month or two.


Top
 Profile  
Reply with quote  
PostPosted: 2009-09-10 7:28 am 
Offline

Joined: 2009-09-08 11:41 am
Posts: 4
Ok. Thank you for your fix.
I tested it and it works fine.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group