It should treat invocations of those primitives as javascript calls. This gives a super easy but flexible way of doing extensions. It should take type information with the list of primitives so that it can still do type checking.