2015-10-27 20:59:15 +00:00
|
|
|
/* Copyright 2015 Realm Inc - All Rights Reserved
|
|
|
|
* Proprietary and Confidential
|
|
|
|
*/
|
2015-10-06 07:57:35 +00:00
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <JavaScriptCore/JavaScriptCore.h>
|
|
|
|
|
|
|
|
@interface RJSModuleLoader : NSObject
|
|
|
|
|
|
|
|
- (instancetype)initWithContext:(JSContext *)context;
|
|
|
|
|
|
|
|
- (void)addGlobalModuleObject:(id)object forName:(NSString *)name;
|
|
|
|
|
|
|
|
- (JSValue *)loadModuleFromURL:(NSURL *)url error:(NSError **)error;
|
2015-11-19 22:36:42 +00:00
|
|
|
- (JSValue *)loadJSONFromURL:(NSURL *)url error:(NSError **)error;
|
2015-10-06 07:57:35 +00:00
|
|
|
|
|
|
|
@end
|