00:29:19  * xan_joined
00:32:31  <alex4nder>C-Man: what?
00:33:30  <C-Man>a little comfused of when i need to use a context and when i dont
00:33:40  <alex4nder>what are you trying to do?
00:33:52  <C-Man>making a Console.log kind of thing
00:33:58  <C-Man>writting member functions
00:34:09  <C-Man>do i need to enter a context
00:34:13  <C-Man>within the member functions
00:34:17  <C-Man>that will be called from js ?
00:35:11  <alex4nder>you mean in a method you bound that takes a v8::Arguments and returns a v8::Value?
00:35:14  <alex4nder>(handle)
00:35:21  <C-Man>yes
00:35:22  <C-Man>that one
00:35:59  <alex4nder>you're in the context at that point
00:36:04  <C-Man>i'd gues i dont cause i'm already being called from a context
00:36:19  <C-Man>oh and is there a way to get context
00:36:22  <C-Man>from an object handle
00:36:41  <C-Man>or maybe from arguments
00:37:59  <alex4nder>why do you want that?
00:38:19  <C-Man>not sure yet but if would need
00:39:27  <C-Man>or like get the current
00:39:28  <C-Man>context
00:40:50  <C-Man>so is there?
00:44:41  <alex4nder>C-Man: if you're in a context, which you would be because JS is calling your code, you can use one of the Context class' static members to get information about the context.
00:44:49  <alex4nder>you don't really need to get that information from Arguments.
00:46:12  <C-Man>oh
00:46:15  <C-Man>i didnt know
00:47:31  <C-Man>so basically Context::GetCalling ()
00:47:34  <C-Man>would work ?
00:50:17  <alex4nder>I don't know why you need to get access to the context to understand if it will work or not.
00:52:32  * mritzquit (Quit: Computer has gone to sleep.)
00:53:24  <C-Man>alex4nder kinda hard to find anyone to ask about v8 so i try to clear up as much as possible in one go
00:53:41  <alex4nder>yah, but I don't get why you need a context, how would I know if it would work or not?
00:55:11  <C-Man>oh
00:55:14  <C-Man>i gocha
01:30:45  * joshthecoderjoined
01:36:12  * xan_quit (Ping timeout: 276 seconds)
01:39:39  * seventhquit (Ping timeout: 260 seconds)
02:10:24  <C-Man>alex4nder
02:10:36  <C-Man>can i set an internal field of the global object
02:10:49  <C-Man>i'v made a object template with 1 field
02:11:00  <C-Man>created the context with it
02:11:13  <C-Man>then get the global
02:11:19  <C-Man>and try to set its internal field
02:11:20  <C-Man>bam
02:11:23  <C-Man>exception
02:11:33  <C-Man>i'v tried it the other way around
02:11:45  <C-Man>tried to pass the context a setup global object
02:11:51  <C-Man>and that just gives me an access violation
02:11:56  <C-Man>when contructing the context
02:27:44  <alex4nder>what are you trying to accomplish?
02:27:59  <C-Man>i want to store a class pointer
02:28:02  <C-Man>inside the global object
02:28:05  <C-Man>i kind of need it there
02:29:00  <alex4nder>I do what you describe, and it works.
02:29:12  <C-Man>O.o
02:29:20  <C-Man>maybe you modified v8
02:29:26  <C-Man>i can't get it to stick
02:29:28  <C-Man>no way i try it
02:29:34  <alex4nder>I didn't modify v8.
02:29:40  <C-Man>can you describe how you did it
02:29:41  <C-Man>?
02:30:08  <alex4nder>This is how I hook my object to the global after I've set internal field count on the template to 1:
02:30:31  <alex4nder>v8::Local<v8::Object>::Cast(context->Global()->GetPrototype())->SetInternalField(0, v8::External::New(this));
02:30:46  <C-Man>oh you use the prototype
02:30:48  <C-Man>lets try that
02:31:11  <alex4nder>there's some weird behavior with V8 there.
02:31:17  <alex4nder>but in theory it should work either way
02:32:28  <C-Man>thanks
02:32:30  <C-Man>i think it works
02:32:39  <C-Man>now lets try to load a script...
02:35:00  <C-Man>now why would String::New throw an exception O.o
02:35:18  <C-Man>oh
02:35:19  <C-Man>right
02:35:21  <alex4nder>because you're not in an isolate/context/whateer?
02:35:21  <C-Man>handlescope
02:35:22  <alex4nder>+v
02:35:24  <alex4nder>ah
02:35:56  <C-Man>so far so good
02:36:00  <C-Man>things seems to work
02:36:07  <C-Man>thank you alex4nder!
02:38:58  <C-Man>darn my trace function failed
02:38:59  <C-Man>xD
02:41:08  <C-Man>then agian it worked
02:41:58  <C-Man>now how do i make make my include thing to be relative
02:42:31  <C-Man>alex4nder any idea how to figure out what script file a function is being called from
02:42:31  <C-Man>?
02:42:46  <C-Man>(assuming i pass script file name to script compile)
02:46:58  <C-Man>gues i could use a trace O.o
02:47:07  <C-Man>get one frame
02:59:53  <C-Man>any idea how to use v8 RegExp object?
03:11:06  <alex4nder>I'd read the code.
03:11:09  <alex4nder>or code that uses it.
03:21:09  <C-Man>alex4nder how do i unwrap the hidden field of the global object
03:21:15  <C-Man>trying to get it from the object
03:21:19  <C-Man>or from the prototybe
03:21:23  <C-Man>seems to throw an error
03:23:40  <C-Man>hmm
03:23:42  <C-Man>or maybe not
03:23:59  <alex4nder>you just get the internal field
03:24:07  <alex4nder>there's an API for it
03:25:26  <C-Man>yeah false alarm
03:25:30  <C-Man>it was something else
03:32:27  <C-Man>hmm wth is going on
03:32:37  <C-Man>everything runs fine until the script ends
03:32:41  <C-Man>then it crashes
03:33:01  <C-Man>#
03:33:01  <C-Man># Fatal error in d:\devel\v8\src\objects-inl.h, line 1737
03:33:01  <C-Man># API call returned invalid object
03:33:01  <C-Man>#
03:33:05  <C-Man>whaaaaaaaaaaaaaa
03:33:09  <C-Man>o.O
03:55:05  <C-Man>why would returning a handle crash
04:14:15  * C-Manquit (Ping timeout: 260 seconds)
04:33:40  * aadsmjoined
04:49:00  * aadsmquit (Quit: aadsm)
05:22:06  * aadsmjoined
05:32:48  * RT|Chatzillaquit (Ping timeout: 276 seconds)
05:37:16  * aadsmquit (Quit: aadsm)
05:56:28  * aadsmjoined
08:18:58  * xan_joined
08:20:01  * aadsmquit (Quit: aadsm)
08:20:52  * joshthecoderquit (Quit: Linkinus - http://linkinus.com)
08:36:38  * xan_quit (Ping timeout: 252 seconds)
08:48:27  * Net147joined
09:01:52  * xan_joined
09:04:35  * bnoordhuisjoined
09:12:41  * RT|Chatzillajoined
09:12:43  * [[zzz]]joined
09:15:54  * [[zz]]quit (Ping timeout: 240 seconds)
09:48:18  * [[zzz]]changed nick to [[zz]]
12:02:34  * C-Manjoined
12:43:59  * xan_quit (Ping timeout: 256 seconds)
14:17:32  * xan_joined
14:21:27  * Net147quit (Quit: HydraIRC -> http://www.hydrairc.com <- s0 d4Mn l33t |t'z 5c4rY!)
15:25:42  * RT|Chatzillaquit (Quit: ChatZilla 0.9.86.1 [Firefox 2.0.0.22pre/2009081014])
15:27:09  * guor_quit (Remote host closed the connection)
15:27:57  * guorjoined
15:39:10  * eoh|quit (Read error: Connection reset by peer)
15:39:25  * eohjoined
16:04:25  * bnoordhu1sjoined
16:04:35  * bnoordhu1squit (Client Quit)
16:53:19  * aadsmjoined
16:54:12  * xan_quit (Ping timeout: 252 seconds)
17:07:18  * xan_joined
17:09:34  * eoh|joined
17:10:07  * eoh|quit (Read error: Connection reset by peer)
17:10:08  * eohquit (Read error: Connection reset by peer)
17:10:19  * eohjoined
17:21:40  * guorquit (Remote host closed the connection)
17:57:16  * aadsmquit (Quit: aadsm)
19:12:02  * joshthecoderjoined
20:10:19  * xan_quit (Ping timeout: 246 seconds)
20:12:25  * xan_joined
20:40:04  * xan_quit (Ping timeout: 246 seconds)
20:47:31  * [[zz]]quit (*.net *.split)
20:47:31  * bnoordhuisquit (*.net *.split)
20:47:32  * saurikquit (*.net *.split)
20:47:58  * bnoordhuisjoined
20:48:11  * xan_joined
20:48:52  * [[zz]]joined
20:50:45  * saurikjoined
21:56:23  * bnoordhuisquit (Ping timeout: 260 seconds)
22:09:55  * cha0squit (Ping timeout: 260 seconds)
22:17:12  * cha0sjoined
22:17:12  * cha0squit (Changing host)
22:17:13  * cha0sjoined
22:36:27  * seventhjoined
23:15:00  * RT|Chatzillajoined
23:34:17  * C-Manquit (Read error: Connection reset by peer)
23:34:36  * C-Manjoined
23:40:20  * c4milojoined
23:47:15  * C-Manquit (Read error: Connection reset by peer)
23:47:35  * C-Manjoined
23:48:43  * xan_quit (Ping timeout: 246 seconds)