2015-10-27 13:59:15 -07:00
|
|
|
/* Copyright 2015 Realm Inc - All Rights Reserved
|
|
|
|
* Proprietary and Confidential
|
|
|
|
*/
|
2015-10-06 00:57:35 -07: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 14:36:42 -08:00
|
|
|
- (JSValue *)loadJSONFromURL:(NSURL *)url error:(NSError **)error;
|
2015-10-06 00:57:35 -07:00
|
|
|
|
|
|
|
@end
|