Files
ANSLibs/swig-4.3.0/Examples/test-suite/javascript/template_default_cache_runme.js

12 lines
336 B
JavaScript
Raw Normal View History

var template_default_cache = require("template_default_cache");
ap = template_default_cache.get_mp_a();
bp = template_default_cache.get_mp_b();
if (!ap instanceof template_default_cache.AModelPtr) {
throw new Error("get_mp_a fail");
}
if (!bp instanceof template_default_cache.BModelPtr) {
throw new Error("get_mp_b fail");
}