realm-js/tests/ios/RJSModuleLoader.h

18 lines
468 B
C
Raw Normal View History

/* Copyright 2015 Realm Inc - All Rights Reserved
* Proprietary and Confidential
*/
#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;
@end