Dave Mason <
[hidden email]>napísal/a:
Has anyone done this? (I don't see it from a search, but I can hope). I had the following in the body of an html file:
<body>
<script type='text/javascript'>
require.config({ paths: {
'programmingfortherestofus': 'src' //mapping compiled .js files and smalltalk source files
}});
The above is not needed, if you don't load anything from that namespace.
require([
'amber/devel',
'amber_core/Benchfib'
amber_core/Benchfib is part of amber/devel, no need to explicitly include it
], function (smalltalk) {
Call to initialize is missing.
});
</script>
</body>
which loaded Number with the right functions, but when I try to run it from the Javascript Console with
(20)._benchmark()
I get an error. I presume I have to wrap that in something, but I don't know what.
../Dave
--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
For more options, visit
https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
For more options, visit
https://groups.google.com/d/optout.