OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 { | 49 { |
50 // Notice that we explicitly ignore creationContext because the WorkerGlobal
Scope is its own creationContext. | 50 // Notice that we explicitly ignore creationContext because the WorkerGlobal
Scope is its own creationContext. |
51 | 51 |
52 if (!impl) | 52 if (!impl) |
53 return v8::Null(isolate); | 53 return v8::Null(isolate); |
54 | 54 |
55 WorkerScriptController* script = impl->script(); | 55 WorkerScriptController* script = impl->script(); |
56 if (!script) | 56 if (!script) |
57 return v8::Null(isolate); | 57 return v8::Null(isolate); |
58 | 58 |
59 v8::Handle<v8::Object> global = script->context()->Global(); | 59 v8::Local<v8::Object> global = script->context()->Global(); |
60 ASSERT(!global.IsEmpty()); | 60 ASSERT(!global.IsEmpty()); |
61 return global; | 61 return global; |
62 } | 62 } |
63 | 63 |
64 } // namespace blink | 64 } // namespace blink |
OLD | NEW |