OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 #include <stdio.h> | |
6 | |
7 #include "include/dart_api.h" | |
8 | |
9 #include "bin/builtin.h" | |
10 #include "bin/dartutils.h" | |
11 | |
12 | |
13 Dart_Handle Builtin::Source() { | |
14 UNREACHABLE(); | |
15 return Dart_Null(); | |
16 } | |
17 | |
18 | |
19 void Builtin::SetupLibrary(Dart_Handle builtin_lib) { | |
20 UNREACHABLE(); | |
21 } | |
22 | |
23 | |
24 void Builtin::ImportLibrary(Dart_Handle library) { | |
25 Dart_Handle url = Dart_NewString(DartUtils::kBuiltinLibURL); | |
26 Dart_Handle builtin_lib = Dart_LookupLibrary(url); | |
27 ASSERT(!Dart_IsError(builtin_lib)); | |
turnidge
2011/11/23 18:05:12
The above line is not needed, since you have the D
siva
2011/11/23 18:24:40
Removed.
On 2011/11/23 18:05:12, turnidge wrote:
| |
28 // Import the builtin library into current library. | |
29 DART_CHECK_VALID(builtin_lib); | |
30 Dart_Handle result = Dart_LibraryImportLibrary(library, builtin_lib); | |
31 DART_CHECK_VALID(result); | |
turnidge
2011/11/23 18:05:12
You could get rid of the "result" variable here an
siva
2011/11/23 18:24:40
Removed result.
On 2011/11/23 18:05:12, turnidge
| |
32 } | |
OLD | NEW |